<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="am-form-group">
                                <div class="tips am-margin-bottom-sm am-u-sm-12">
    		                        <div class="pre-error">
    		                            <p>  开启前必须保证旗下的商户开启分账功能，抽取比例必须小于或者等于商户号中设置的分账比例
    		                            </p>
    		                        </div>
    		                    </div>      
                            </div>       
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">分佣参数设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    抽取 <span class="tpl-form-line-small-title">比例</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="number" min="0" max="30" class="tpl-form-input" name="data[extract]" value="{$model['extract']}" required>
                                    <small>单位百分比，取值0-30，设置为0不抽取，设置10为收取订单总额的10%。（订单总额不包含配送费）</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
                                    代理抽取 <span class="tpl-form-line-small-title">比例</span>
                                </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="number" min="0" max="100" class="tpl-form-input" name="data[agent_extract]" value="{$model['agent_extract']}" required>
                                    <small>单位百分比，取值0-100，设置为0不抽取，设置50为抽取佣金总额的一半，剩余的为平台所有<br>开启此项必须保证代理配置了收款号</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        $('#my-form').formPost();

    });
</script>
